import express from "express";
const router = express.Router();
/* GET users listing. */

import UserController from "../../controller/user/index";
const userController = new UserController();
import UserValidator from "../../validator/user/index";
const userValidator = new UserValidator();

router.post("/login", userValidator.login, userController.login);

router.get("/getUserInfo", userController.getUserInfo);

router.get("/getUserList", userController.getUserList)

router.post("/addUser", userValidator.addUser, userController.addUser);

router.post("/deleteUser", userValidator.userId, userController.deleteUser);

router.post("/resetPassword", userValidator.userId, userController.resetPassword);

router.post("/changeUserStatus", userValidator.changeUserStatus, userController.changeUserStatus);

router.post("/changeUserInfo", userValidator.changeUserInfo, userController.changeUserInfo);

router.post("/changePassword", userValidator.changePassword, userController.changePassword);

export default router;
